<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCabinSetTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cabin_set', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('policy_id')->comment('政策设置ID');
            $table->integer('stock')->nullable()->comment('库存');
            $table->integer('cabin_min')->nullable()->comment('座位数范围（小）');
            $table->integer('cabin_max')->nullable()->comment('座位数范围（大）');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cabin_set');
    }
}
